package com.hougong.im.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 每个群成员的群消息表,每次发送一条群消息，判断群成员是否再群面板中，再插入一条记录

 * </p>
 *
 * @author lsz
 * @since 2018-08-25
 */
@TableName("group_message_member")
public class GroupMessageMember implements Serializable {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 用户id
     */
	@TableField("member_id")
	private Long memberId;
    /**
     * 群消息id
     */
	@TableField("group_message_id")
	private Long groupMessageId;
    /**
     * 0未读，1已读
     */
	@TableField("read_status")
	private Integer readStatus;
    /**
     * 群id
     */
	@TableField("group_id")
	private Long groupId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getMemberId() {
		return memberId;
	}

	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public Long getGroupMessageId() {
		return groupMessageId;
	}

	public void setGroupMessageId(Long groupMessageId) {
		this.groupMessageId = groupMessageId;
	}

	public Integer getReadStatus() {
		return readStatus;
	}

	public void setReadStatus(Integer readStatus) {
		this.readStatus = readStatus;
	}

	public Long getGroupId() {
		return groupId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	@Override
	public String toString() {
		return "GroupMessageMember{" +
			"id=" + id +
			", memberId=" + memberId +
			", groupMessageId=" + groupMessageId +
			", readStatus=" + readStatus +
			", groupId=" + groupId +
			"}";
	}
}
